import requests

# 这就是浩哥之前说的，内部自己调用的程序接口
def update_data(gateway: str, resource_info: dict):
    try:
        res = requests.post(f"{gateway}/api/device/updateResourceData", json=resource_info)
        return res.status_code == 200
    except Exception as e:
        return False
